package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the jmesa_tables_tbl database table.
 * 
 */
@Entity
@Table(name="jmesa_tables_tbl")
public class JmesaTable extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="JMESA_TBL_CODE")
	private int jmesaTblCode;

	@Column(name="JMESA_TBL_NAME")
	private String jmesaTblName;

	//bi-directional many-to-one association to JmesaTableColumn
	@OneToMany(mappedBy="jmesaTable")
	private List<JmesaTableColumn> jmesaTableColumns;

	public JmesaTable() {
	}

	public int getJmesaTblCode() {
		return this.jmesaTblCode;
	}

	public void setJmesaTblCode(int jmesaTblCode) {
		this.jmesaTblCode = jmesaTblCode;
	}

	public String getJmesaTblName() {
		return this.jmesaTblName;
	}

	public void setJmesaTblName(String jmesaTblName) {
		this.jmesaTblName = jmesaTblName;
	}

	public List<JmesaTableColumn> getJmesaTableColumns() {
		return this.jmesaTableColumns;
	}

	public void setJmesaTableColumns(List<JmesaTableColumn> jmesaTableColumns) {
		this.jmesaTableColumns = jmesaTableColumns;
	}

}